package com.by.feign;




import com.by.ResultBean;
import com.by.SpuRemoteClient;
import com.by.bean.StockBean;
import com.by.core.controller.BaseController;
import com.by.service.SpuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SpuFeignContrller extends BaseController implements SpuRemoteClient {

    @Autowired
    SpuService spuService;

    @Override
    public ResultBean updateStock(List<StockBean> beanList) {
        int rs = spuService.upadteStock(beanList);
        return updateResult(rs);
    }
}